package com.gsit.misn.domain;

import java.io.Serializable;

import com.thoughtworks.selenium.DefaultSelenium;

public class Patient implements Serializable{
	
	
	private String id;
	private String patientID;
	private String patientName;
	private String doctorName;
	private String relativeName;
	private String address;
	private String city;
	private String state;
	private String zip;
	private String country;
	private String phone;
	private String email;
	private String gender;
	private String dateofBirth;
	private String height;
	private String weight;
	private String occupation;
	private String maritalStatus;
	private String editURL;
	private String searchURL;
	private Integer rowNo;
	
	public Patient() {
		super();
		
	}
	public Patient(String id, String patientID, String patientName,
			String doctorName, String relativeName, String address,
			String city, String state, String zip, String country,
			String phone, String email, String gender, String dateofBirth,
			String height, String weight, String occupation,
			String maritalStatus, String editURL,String searchURL,Integer rowNo) {
		super();
		this.id = id;
		this.patientID = patientID;
		this.patientName = patientName;
		this.doctorName = doctorName;
		this.relativeName = relativeName;
		this.address = address;
		this.city = city;
		this.state = state;
		this.zip = zip;
		this.country = country;
		this.phone = phone;
		this.email = email;
		this.gender = gender;
		this.dateofBirth = dateofBirth;
		this.height = height;
		this.weight = weight;
		this.occupation = occupation;
		this.maritalStatus = maritalStatus;
		this.editURL = editURL;
		this.searchURL= searchURL;
		this.rowNo=rowNo;
	}
	
	public Patient(DefaultSelenium selenium,final String mSearchURL,Integer mRowNo ) {
		super();
		this.id = selenium.getValue("id");
		this.patientID = selenium.getValue("pid");
		this.patientName = selenium.getValue("pname");
		this.doctorName = selenium.getValue("dname");
		this.relativeName = selenium.getValue("rname");
		this.address = selenium.getValue("address");
		this.city = selenium.getValue("city");
		this.state = selenium.getValue("state");
		this.zip = selenium.getValue("zip");
		this.country = selenium.getValue("country");
		this.phone = selenium.getValue("phone");
		this.email = selenium.getValue("email");
		this.gender = selenium.getValue("gender");
		this.dateofBirth = selenium.getValue("dob");
		this.height = selenium.getValue("height");
		this.weight = selenium.getValue("weight");
		this.occupation = selenium.getValue("occ");
		this.maritalStatus = selenium.getValue("mstatus");
		String mEditURL = "http://media-mims-ggc.info/edit.php?id="+ this.id;
		this.editURL = mEditURL;
		this.searchURL= mSearchURL;
		this.rowNo=mRowNo;
	}
	
	
	
	
	public String getPatientID() {
		return patientID;
	}
	public void setPatientID(String patientID) {
		this.patientID = patientID;
	}
	public String getPatientName() {
		return patientName;
	}
	public void setPatientName(String patientName) {
		this.patientName = patientName;
	}
	public String getDoctorName() {
		return doctorName;
	}
	public void setDoctorName(String doctorName) {
		this.doctorName = doctorName;
	}
	public String getRelativeName() {
		return relativeName;
	}
	public void setRelativeName(String relativeName) {
		this.relativeName = relativeName;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getZip() {
		return zip;
	}
	public void setZip(String zip) {
		this.zip = zip;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getDateofBirth() {
		return dateofBirth;
	}
	public void setDateofBirth(String dateofBirth) {
		this.dateofBirth = dateofBirth;
	}
	public String getHeight() {
		return height;
	}
	public void setHeight(String height) {
		this.height = height;
	}
	public String getWeight() {
		return weight;
	}
	public void setWeight(String weight) {
		this.weight = weight;
	}
	public String getOccupation() {
		return occupation;
	}
	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}
	public String getMaritalStatus() {
		return maritalStatus;
	}
	public void setMaritalStatus(String maritalStatus) {
		this.maritalStatus = maritalStatus;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEditURL() {
		return editURL;
	}

	public void setEditURL(String editURL) {
		this.editURL = editURL;
	}

	
	public String getSearchURL() {
		return searchURL;
	}
	public void setSearchURL(String searchURL) {
		this.searchURL = searchURL;
	}
	public Integer getRowNo() {
		return rowNo;
	}
	public void setRowNo(Integer rowNo) {
		this.rowNo = rowNo;
	}
	@Override
	public String toString() {
		return "PatientDTO [id=" + id + ", patientID=" + patientID
				+ ", patientName=" + patientName + ", doctorName=" + doctorName
				+ ", relativeName=" + relativeName + ", address=" + address
				+ ", city=" + city + ", state=" + state + ", zip=" + zip
				+ ", country=" + country + ", phone=" + phone + ", email="
				+ email + ", gender=" + gender + ", dateofBirth=" + dateofBirth
				+ ", height=" + height + ", weight=" + weight + ", occupation="
				+ occupation + ", maritalStatus=" + maritalStatus
				+ ", editURL=" + editURL + ", searchURL=" + searchURL
				+ ", rowNo=" + rowNo + "]";
	}
	
	

	

}

